﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//using sdk_cop;
using IcbcOpenDemo.Models;
using IcbcOpenDemo.Models.Tools;
using System.Net;
using System.Threading;
namespace IcbcOpenDemo
{
    /// <summary>
    /// 参数类，保存用到的参数
    /// </summary>
    public static class Params
    {
        #region 共享使用的资源（APP_ID、私钥、网关公钥、开台IP）

        // 私钥，使用密钥生成工具生成密钥对，公钥交给工行录入到开放平台系统中，私钥由客户保存，为方便测试，所有测试环境都只使用这个私钥
        // 测试环境私钥
        //public static string PRIVATE_KEY = @"MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCZInQgxPwBbOQkl3sttk1BLiRNd6zuLLmYkxTCiAiWHHN6C/FcQX2UduCWL28BBCpRXLricV44fp2s751v17e9k9I0PcBN6Hsx51qFQNVwQoUwcFt9+fx/7Stp/7M0pj/7CuJYeFesOkZ1wo3hSOWlzV5GSA4uNMG+1y6E2D2KBzj4gb2LpBZO1F5y/DMOu7wdbSASEboJf9VfNKUxBa4F8b2GVj/XCFfdjzjd/ydTh99So4FRVtqmkS63nYUrVMP2mP9qf/av0P6uMT531ZOzkUkKnbaUy532XJT+DT5uYYhcIUwhxr823PfZq0IIfYw3yxlUmvwELnrYXAgGjWxBAgMBAAECggEATHTQSEAxlkCY09Ax9wvLHJz+EROMaso3y/67YbjrmI8R9MCbvDUSjxqfXTzHjllXC5Jh2IdDxK8q6FomX93zZhq029Js/jjxsWPSZS+OoWME/r9KXuZ+dBylDWJWRhYvYZb4lbVYCKx723XMwstTpWmZBTwaoGVEypTDLB6O8yeJvpMcsDP8/94RXQfNb9zbpEs+QcobBtxMXk8FGYFeugkFXvtYzfUq169g4ldpBgiopMxu8jNdoT4oWLM8SeCIOwAw80f4TMuJf7NMEVIxCBiiC8MWX327Y62aYFB7Sz+Ds1PjxjdraFw/LKRRS74E1DKitrplaBnBicXJLv9CsQKBgQDocKkOTeKuI9aCo59JzBY5U70xojdLbCXcwE64S77p3TlqKYiK1NkzXxROXunmxih12tQTfwuDcID8twFMOCUdGrk41sGTReK6wiXXXVFWUtcD3+z1VeoztCat67PXNH3dGn32ON3Q47FGdN5uPE8bSd8cLDzYmFbP8Huf0VToPQKBgQCop/rFOzMdg95byCfu32B4bZRXNEHS8kJ/izns7Dxh4dLMRTGaHbNNa82duXQYpdUHTNmAB7ZU1flWbkVTEIzK2AWEiIxv6P0+1bObVHT/E0aAX6PuREEtqSO2SJmblae/W1WXKKfzN2gwibVlUX7DR7oI/fxbP1kBHnnOn0KQVQKBgQCTRB239Fy0G/yilGwtY2KJO6bYtX/3BzQN4sF9PnBc106zFlFuNGDQjWLeLIBhOBcWZGiNWaa/xh3S/1eRJNlO0Umc22OVnWeDD9LN2k/YM3ALAmqtHZve2jrPYlB0/srntQstXuYanMgKba0nhopQLcNvpA+A4zPNVv3cSdJTuQKBgQCNWrzDMarVwgBLzKYrfuzMAouhyxqgQouZeodCG31ATJTwv82i7eGpsgDTgOvc/KBfTfm9ZLlcwToJRsKzq9tU51k4i3mpEg2u7E1skoy8fNtKHN64hFxceLaFwLN9wyClMVe7KUgagQXCKKjwEi28XhF+F+G6WI2wcmqE0tZnQQKBgBi7AcXC7fUAK8Gm5Yzzd0oszIjx9RmfS0W0Y+ngHeO06xFwikctOdXJw9HwyGeWEqnCLYehclZZykYpD7jRgiF7XHK4XV8sK0G9CFTTyHQ0Xx9zrr5JvgaJxZ0l4IFovnAbWZsvkSBt0g0yTpniebLdPSZfqKWUZZFed2ahlLko";

        // 中民聚福 old
        //public static string PRIVATE_KEY = @"MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDUirriT3ZMlMUuNRd9wyNB4kN1oqu535+Ta9+cRPdGQ9BjeMmDTaSU8wc8qMteWLAaytB1lasF9jWoeyOjS0ZXk8WhcIr21+aqw1dcxYNbf+OLQRtsnVJaw8sQ/uSBOMErIcvedl067EpyVvJQQ7MUXVZhctnAMCnrsz6W896VEF3KUUJ5gHech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zrSq9/o4Wj9yzg2QsTniS+W7MyQ3GUXm9FTsNINHR1kSdiS/jfMelQtkhfgfv5XtNzTQQn8YjhWuofRTsjkbft5cX655A9+M6oKWOxy4Ov/KKHTzHJ+gKDL3qsZKQ2TMCgYBSO2kULGPywcSbMVpUp4KinghBGW5jz3aprTG4KCNPWKNJ7zMw1dPBTcK2sEEQpnqQq0gLjaCXeWw/ZcEWCRap8OIsLWb5nYSp5EiYMf39lieAPTupDIdMVomOEASZFVrnnsEshwmV/briimpXnqkxF4ByMhqVRPCndcOZO8+FGg==";
        
        // 中民聚福
        //public static string PRIVATE_KEY = @"MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDGLH+yyXUHz/uRetMYVJhoN8pC8am58MAW45k4qAYpnov+nujMP1he1FPsQl2fHzNrQjI3uZaY1rUryN5LFS5OLJZ6tFt+Yii+16PNjxA1NCkOu7sWICBOQWlXnTLzMDFmeYrEaobXMuk7SU0VevEUt28jwg+50vgZIk/PuYf8OFZ8q1ALiqGGsAjcLfHvlC217/qDlUX/cjvhcdQsWjm44aXGaOL/iUhkC35pHbukmASmPp8dhM+dMun/r9hFZ2+c4+rvfWtc5lZcDlByyE7SKsnOluhAr2iP44pFo9xDlMuHe1s5CQkEvY000/I7JRb5HGL8qDKcgxanNB0rUxHLAgMBAAECggEAch0po2ASPd9rs0gQyk/cOxb1JztVSrbxRbzlfBR1B/4+Cu6iiwpm7qRBdyh4FKq4xyilFiWOLJBmXsIaDw4xTd6rABlfHhWT9ODjd/jLkndotQ0xG/p/39AWwtbIgfTcXW/bkmLtJnowh20cMCRNMmq2Wtbii1SKfJ6farQhNACRbFiciYD13iXdvTezs+MbLxmCa/84CChOi1/ao6nVAxhIE0pOrUGrJ8bPL04ibZpY5Hr4XxyStp71GoBGGMeNIJFfexh/XNd2myU3C59H+otngwUrr4ofvo65+xxyCpvEu8Kl55/YMUjEXsQwOOCsgMf+IWVaswTdY0nj84LdQQKBgQDpXq62T5bzpy/fI8ON/si7zlkBI43zOwCLs0GmaDZl5JEC5BtWk3kaGQ8V1wT5OwYPo1GZRx379mhAkmBhUEqccAshlX2k5EaoIsEtURWMSrsQF8md146ukW6YCUDabcf7/Gdb6I8Ib027DwfIGga2/g+k9/c/MAUxdlZOkVR+UQKBgQDZZBad0TAgHXo/mNJBPQl7CLPgJLcSrhU/+0t510Q8J7C9EleFSemC7dVo5UE+7yXWI++Uy3lAkx8UN+MLf3XCOpnAu7Jl9VrwbYJcNAn5BCaLHw+5fonITYKF++0LvuLjmUz+2eoOJK/Hdbff9rOQeT+uVrjfnPT1YCO5X3W7WwKBgQDQOCSWkcjTuPYjmBthVFTyDJipRXnf7WL9QoFu4ki2/QrNk4043/gLaxRknibX4Ov1g/jIVAXSy/YUtwW7jhIkJmwoGOOz/eF1Hx1RO6mINR1WrIK9jJjH9QbCLG9q9MycboYiIQuNsRGftzdwOJiJKYH35S77d/MKQNWc4FqNIQKBgBG/D/GWMB2PCnnCmfdlai63CSgVFzTZLTbp5sFth0551v24T5i77eoYTEGh5W+jyizvBhHZgm55FCJsZYZ8wzo12nNXXzrfiqrx5aBtRxsi8ZqN0JTN9aV6Xltds34v+QmnbBep5md9KzRXMcmAtCvpGf+7aKAoif61+HSbjFrdAoGAZfIzLp+CPUd3nAmTnoLGZvG2A3AX5qpOsfQuLa7jThEYctXud3OJhAKqrt0JDK5ak43967L+StcrzjAKhxWZzHzxke7XmdWn1GRZ1c341hWUsBIPx/4K03n+KeALnb4dfctLmnlH/abn5o3QCWlro+E3mdwY3DDrLaMxuEImXdc=";
        
        
        // 令狐充        
        //public static string PRIVATE_KEY = @"MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDRYPfkMXcEJ46fEhJE2cE9EIcKWBkILJDetC3ZG7nLWHPpe19kXncj5W5/VCr+SSeTnnb3naC1PYyizqqWc9KAC/6RSYNv8T24t5TzV9wdfVi5fH/TD9ncbmtIfO4kPCg2LcPW8ciOMzu6f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9gMwqIv3nQKBgQCEHu8YgKesj58uixD5c5StP32rMkEqGX2oBLrN6LeIpetu7cRtmXVH7iGbCRkR4wy3oQbvvrBKxT8ZyB1lnAoDq192mt+V82mI77yvoYn35q+pYt3AMcRWReBw8paKUyPIoPXrXln+ph7eC0/ma82YDkRKTUtOz+DM1wE9qoPrgQKBgQDbBHt8TJgzm57kYoJyP9lTs0m8niJYkGk8BLG+o83wzMQIpd/8aBMY54eZ7lqp9gsvOzYrloMwjivAdnAoRMEjnESCAJx5bSnsA4Disj5ubdbzdW6yj4eKk5azvi+xtlMrt9tcvrtAfS+ui1eoBaQ6Cy9403cLtUn8YFnrEjM0Jg==";
        
        // 中民
        //public static string PRIVATE_KEY = @"MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDI/cTkhUqj7UqerYv3Z08JhmU97kTrazT+G6GMJWq1Iaz0MERh+ev9swyV9sHy0dQeeIO199J9PRWptHB9aO9AqOeE/nFoMSt0khYvlSauR1GoOVMsIOMOsXUZKBnoJuBnr66PYqrplGNHbf2L76BuyxXPQT9jqCSdctQkqHSbHBh3/8LXd665xDBuO8FtRIf1HDo6qid5MEtg2rJzMP1Y9KMq90J/z2cB13mmppQ9nkFNfbKMyK+mulhuhobECpczxaLKfERcvRY6Qz/pLM+MRMjCZzi5QBz3Nx1i/tYdb3ITMGcC9S7XSpoudZzkL2E/Pbya8EwlqkiguM3KqT/NAgMBAAECggEANAzkDHooVkOBa45uDOgII+NWHK+z0XO2CYiGUZDvDXFnJOXLD8R1RQI1ZDC/EW8di7aSBXHkZOKI1aYQ66ldLFWRf3OVUvJI2qtqa3Ao0EFP+EzAKVFq+8chGB62dtR6kN+CSUe4Ez2GaF0nqDGqTobxYvb2v4wvz0aJgeTOLcynVBTL7KLkt8NhDGGG5xskk1T2NLSjy20BGN5KO0iiE6W7tqd30I4oLAErpOb7LVUIrIVurFXWDOU6ea6aFvAk/CdQ7KV+pu8Ot12F1MJV1/h7YOHGuAxT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+bAFRM1L+A2TKfd3E1hvDfMiQdc/gPEAOdkw5c0OJSmZdY5K4CziYg8Pv/aukHDbKEXb7DucRkdhL5ZKXwKBgQDJ2mxCBTlHHnNObwyW1V7z0qcU2t/2NR8lGAGBmlfMocbGZMf6KbZIIcrKBS8BBoYdrsJdDOwTjSdIcMr3WQkelOVojK0kFLUS1GBoeOLYGCYbiXcrSujVQVeG7J+2EUwc73yLihGK1Awb5wrerpdHIBRBL2EFNaImDUn3xoMswQKBgQDcofMNhVA3suYwmU+n50ZTcmkTca0Pi6fLTMEuP0jg5UUkTrhjkrsuXUZQf7/c1+70LJeePUFPg3GTORJqd8R3DRwpxN8waf9eaRF83MABjE+UZBHxNZP4RG4Cu8XHiF+1mH0DsPqOMb9mO+gjTYETtA8QBx3BWEFee27mxxaWzA==";

        // 建华测试
        //public static string PRIVATE_KEY = @"MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDxgfvwOSrAD4ythVw6jpH/si3JYaUppUO6SZBSxetgsvzbixynMCBWfcOB3yy4EC6lEUbR4xJaRNUwAQkJOO/VKEHxVfnsQKpYh0a6gz/d/CHk2bzWa+F8/T0QLRpOBhXIQQA6e6x5ljSd7/Ily4ob4+gAxrHRKXC5S8aXMXvWP7rHf+a1pHLvWHKTAKIfutVC3I1LYfBmoAIh0bTP1tv6VpDWIY0d1pXhdQKiil23uPK55zcwfaE5h3wsFPdaXdeC2JTfDu2Tl4EU05s6v7o5gdOGlxp5vNDgJef5/NRbG0+VGd1s4XeUr6VcyLf3XO0vNz0c/Olyqz7xnyhfdryDAgMBAAECggEADKpheRa2bD4khZEh5hxGAd/pUM9jJwz4wVNMU1r33ilk42qnRQlcGM0drLj0km6e059VVHqRItTLTWowfCBVS5uB4dM9eStnA5+MkQmDFvQ7HtJgeepMeA6b3jZPU9oz2D24cli8EeBTwBiuXVcQVigcqbXB65M9yynzL0i0EudIoKmEi2GuUSsf5Rxqa/2g86CedY4VmDPh0GF7ddgtq9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2twR4ldhRZ0kgx39FesCgYEAuVNCR9K8xq3woH6cVbm1QIQnRjHF0ddbSHMkmPsRg2uoSekWm5Q8qflo61S6F5k6yRFnL+QZVVAh7aM9R50kHqQk2CbuubbFUNxNymB8v5kaPm0WcGR+kn0ScTw3zu44LjZFYtxXoPZ7NLUdlLnTSy308rgvOi1w0NFuu7uujGkCgYAuMwlyLS+rALqCAHUanDaktSaeTQpsBUwYHJXVLdNYC9vCngZVWOTVPZDZkUUm0tr1WIPznntFW2geUU73kr+Caluyi01JIN9ie6xn8yzURkKANaBhUFpXeqZT3B+36VwDKDZPt1T4dlpY7dhZJK8TdIECd80KwGJII1AzVMtWNwKBgFWpGoxPd5JvgeV/Ap/h4nlf2oWTQ0xSQadta6Z7lAGBypBFGp9VxGemEEJCzwlMThwM/7qEq8J3e2+5P4n0p+eG6M/Gu6Cl3DphJFs661hHxBFs947Z9A6brb2teAx2nS/mEAY76DO3b3+/wzaGgEURQdPuBkaZTnoAtlLC42YO";
        // API网关公钥，用来验签API返回的信息
        // 测试环境
        public static string PUBLIC_Gateway_KEY = @"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwFgHD4kzEVPdOj03ctKM7KV+16bWZ5BMNgvEeuEQwfQYkRVwI9HFOGkwNTMn5hiJXHnlXYCX+zp5r6R52MY0O7BsTCLT7aHaxsANsvI9ABGx3OaTVlPB59M6GPbJh0uXvio0m1r/lTW3Z60RU6Q3oid/rNhP3CiNgg0W6O3AGqwIDAQAB";
        // 生产环境
        //public static string PUBLIC_Gateway_KEY = @"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCMpjaWjngB4E3ATh+G1DVAmQnIpiPEFAEDqRfNGAVvvH35yDetqewKi0l7OEceTMN1C6NPym3zStvSoQayjYV+eIcZERkx31KhtFu9clZKgRTyPjdKMIth/wBtPKjL/5+PYalLdomM4ONthrPgnkN4x4R0+D4+EBpXo8gNiAFsNwIDAQAB";

        // API网关请求址，注意最后加上"/"
        public static string APIServiceUrl = @"https://apipcs3.dccnet.com.cn/api/";  // 第三套测试环境
        //public static string APIServiceUrl = @"https://apipcs4.dccnet.com.cn/api/";  // 第四套测试环境
        
        //public static string APIServiceUrl = @"https://gw.open.icbc.com.cn/api/";  //生产

        // APP_ID工行提拱                
        //public static string APP_ID = "10000000000000199067";  // haolai三套        
        //public static string APP_ID = "10000000000000200061";  // 中金三套
        //public static string APP_ID = "10000000000000200061";  // 中金四套
        //public static string APP_ID = "10000000000000288024";  // 快招测试 四套
        //public static string APP_ID = "10000000000000200061";  // 快招测试三套
        //public static string APP_ID = "10000000000003175766"; // 快招生产
        //public static string APP_ID = "10000000000000225568";  // 中民聚福
        //public static string APP_ID = "10000000000000231076";  // 令狐充
        //public static string APP_ID = "10000000000000187514";  //
        //public static string APP_ID = "10000000000003231636";  // 中民
        //public static string APP_ID = "11000000000000005301";  // 全播
        //public static string APP_ID = "11000000000000008904";  // 建华测试
        //public static string APP_ID = "11000000000000009692"; // 诚威
        public static string APP_ID = "11000000000000010704"; //大洋
        /// <summary>
        /// 集团编号
        /// </summary>
        //public static string CIS = "201190000229381"; //haolai
        //public static string CIS = "201190000240346"; //榄菊        
        //public static string CIS = "201190000679023"; //pan 
        //public static string CIS = "201190001998806"; //中金、快招测试、中民聚福
        //public static string CIS = "201190002022566"; //快招
        //public static string CIS = "201190001463780"; //令狐充
        //public static string CIS = "201190002399385"; // 中民
        //public static string CIS = "201190001470847"; // 全播
        //public static string CIS = "110490000286005"; // 全播
        //public static string CIS = "201190001338428"; // 诚威
        public static string CIS = "201190000395879"; // 大洋

        /// <summary>
        /// 登录ID或叫证书ID
        /// </summary>
        //public static string Login_ID = "haolaiapics.y.2011"; //haolai 三套
        //public static string Login_ID = "lanjuapics4.y.2011";  // 四套用户
        //public static string Login_ID = "lanjuapics.y.2011";  // lanju三套
        //public static string Login_ID = "zhongjinapics.y.2011";  // 中金三套
        //public static string Login_ID = "zhongjincs.y.2011";  // 中金四套、快招
        //public static string Login_ID = "kzwlapics.y.2011";  // 快招三套
        //public static string Login_ID = "kzwl.y.2011";  // 快招生产
        //public static string Login_ID = "zmcs.y.2011";  // 快招三套
        //public static string Login_ID = "zmjfcs.y.2011";  // 快招三套
        //public static string Login_ID = "lhcnccs.y.2011";  // 中民聚福三套
        //public static string Login_ID = "zmjf.y.2011";  // 中民聚福三套
        //public static string Login_ID = "jhycpjcs.y.2011";  // 中民聚福三套
        public static string Login_ID = "dycs.y.2011";  // 大洋

        public static AccInfo[] AccInfos = new AccInfo[] {            
            new AccInfo {AccNo=" 2011028019200043115",AccName="块虽雁变滋阁养灼婚平频识",Curr="CNY"}, // 大洋
            //new AccInfo {AccNo=" 2011014519100135215",AccName="衙褒腈玲捏屏（妖产）婚平频识",Curr="CNY"}, // 全播
            //new AccInfo {AccNo="2011002219248264945",AccName="澳房澳双X块嘉)婚平频识",Curr="CNY"}, // 建华
            //new AccInfo {AccNo="2011002219248263892",AccName="澳房澳双X块嘉)婚平频识",Curr="CNY"}, // 建华
            //new AccInfo {AccNo="2011002219248484581",AccName="澳房澳双X块嘉)婚平频识",Curr="CNY"}, // 建华
            //new AccInfo {AccNo=" 2011019709200007445",AccName="饮娇苦张才英憶褪乓忘嘴易",Curr="CNY"},            
            //new AccInfo {AccNo=" 2011019709200007445",AccName="饮娇苦张才英憶褪乓忘嘴易",Curr="CNY"},            
            //new AccInfo {AccNo=" 2011003409024873831",AccName="八缝扎豁组憶褪乓忘嘴易",Curr="CNY"},
            //new AccInfo {AccNo=" 2011021709024202606",AccName="饮邪疗操号午泉鲜乓忘嘴易",Curr="CNY"},
            //new AccInfo {AccNo=" 2011021709313016887",AccName="饮邪疗操号午泉鲜乓忘嘴易",Curr="CNY"},
            //new AccInfo {AccNo=" 1001228109016212655",AccName="备介督反（颗馈）化僵侦柱妒程讼侦柱",Curr="CNY"},
            //new AccInfo {AccNo=" 2011026909022128303",AccName="备介督反（颗馈）化僵侦柱",Curr="CNY"},
            //new AccInfo {AccNo=" 2011002514200001093",AccName="备介督反X颗馈)化僵侦柱",Curr="CNY"},
            //new AccInfo {AccNo=" 2011002514200000989",AccName="备介督反X颗馈)化僵侦柱",Curr="CNY"},
            //new AccInfo {AccNo=" 3602866209100095347",AccName="备介督反X颗馈)化僵侦柱穷期讼侦柱",Curr="CNY"},
            //new AccInfo {AccNo=" 2011021109113011232",AccName="备介督反（颗馈）化僵侦柱",Curr="CNY"},
            //new AccInfo {AccNo=" 2011021109114007574",AccName="备介督反（颗馈）化僵侦柱",Curr="CNY"},
            //new AccInfo {AccNo=" 2011002509238111556",AccName="备介督反（颗馈）化僵侦柱",Curr="CNY"},
            //new AccInfo {AccNo=" 2011002509024553851",AccName="备介督反（颗馈）化僵侦柱",Curr="CNY"},
            //new AccInfo {AccNo=" 2011002529200003234",AccName="备介督反（颗馈）化僵侦柱",Curr="CNY"},
            //new AccInfo {AccNo=" 2011002509212111655",AccName="备介督反（颗馈）化僵侦柱",Curr="CNY"}
        };

        #endregion
    }

    // 定义一个账户类
    public class AccInfo
    {
        public string AccNo { get; set; }
        public string AccName { get; set; }
        public string Curr { get; set; }
    }

    class Program
    {
        static void Main(string[] args)
        {            

            DemoQAccBal.QAccBal(Params.AccInfos[0].AccNo);
            //Demoquerybankinfo.QueryBankInfo("6225000000000220");
            //DemoQAccBal.QAccBal(Params.AccInfos[1].AccNo);            
            //DemoPAYENT.Payent(Params.AccInfos[0].AccName, Params.AccInfos[0].AccNo, "哈蛋逝", "6212262011013551069");
            //DemoQHisD.QHisD(Params.AccInfos[0].AccNo,"20230101","20230430");
            //DemoLDownEBillQry.LDownEBillQry(Params.AccInfos[0].AccNo, "20230320", "23079000001");
            //DemoDIBPSBC.DIBPSBC();
            //DemoPayPer.PayPer(Params.AccInfos[0].AccName, Params.AccInfos[0].AccNo, "岳跨谭", "6212263602098341795");

            //VerifySign.VerifySignString();
            //VerifySign.Decrypt();

            //Console.ReadKey();
        }
    }
}
